const mongoose = require('mongoose')

const Schema = mongoose.Schema({  
    username: { type: String },
    password: { type: String , set(val){
        return  require('bcrypt').hashSync(val,10)
    },select: false }
})

module.exports = mongoose.model('AdminUser',Schema)